#!/bin/sh

set -e

case $1 in
  hibernate|suspend)
    ;;
  thaw|resume)
    pkill -F /var/run/brickd.pid -L -USR1 brickd || pkill -USR1 brickd || true
    ;;
  *)
    ;;
esac

exit 0
